<?php

class Application_Form_Message extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');

        $this->addElement('text', 'username', array(
            'label' => 'Username',
            'required' => true,
            'filters'    => array('StringTrim'),
        ));

        $this->addElement('textarea', 'text', array(
            'label' => 'Text',
            'required' => true,
            'filters'    => array('StringTrim'),
            'attribs' => array('rows' => 4)
        ));

        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Save',
        ));

        $this->addElement('hash', 'csrf', array(
            'ignore' => true,
            'salt' => 'form_message_salt'
        ));
    }


}

